package com.iframework.anson;

import com.google.gson.Gson;
import com.iframework.model.json.MainRanking;
import com.iframework.tools.ApiUtil;
import com.iframework.tools.BaseTools;
import com.iframework.tools.DBHelp_JDBC_MySQL;

public class Main {
	
	public static void main(String[] args) {
		
		
		
		
//		 List<String> list = Arrays.asList("1", "a", "3", "rt", "5");  
//		 log("---->list convert jsonStr:" + gson.toJson(list));
//
//        Map<String, Object> mapContent = new HashMap<String, Object>();
//        mapContent.put("name", "100");
//        mapContent.put("age", "36");
//        log("---->map convert jsonStr:" + gson.toJson(mapContent));
//        log("---->分隔符<----");
//        
//        String studentJsonStr="{\"name\":\"xuanyouwu\",\"age\":26}";  
//        
//        
//        
//        
//        log("---->分隔符<----");
//        JsonObject jsonObject=new JsonObject();
//        jsonObject.addProperty("name","xuanyouwu");
//        jsonObject.addProperty("age",26);
//        log("------>create jsonObject:"+jsonObject);
//        log("---->分隔符<----");
//        
//        
//        
//        JSONObject object = JSONObject.fromObject(tmpJSON);
//        log("JSONObject:"+object);
		
        //log(ranking.getMale().get(0).getTitle());
        
        //log(String.valueOf(ranking.getMale().size()));
        //log(ApiUtil.send(url));
        //url = "http://api.zhuishushenqi.com/ranking/54d42d92321052167dfb75e3";//获取单个排行榜书籍列表
        //log(ApiUtil.send(url));
        //url="http://api.zhuishushenqi.com/ctoc?view=summary&book=51d11e782de6405c45000068";//获取书籍来源列表
        //log(ApiUtil.send(url));
        //书籍来源保存
//        BookManager.BookSourceManager("1305", "57e80a02c4f76bd1483478d2");//5876c6f6be275ca91d820aa5
        //章节来源保存
		//ChapterManager.getChapter("1305", "548d9c17eb0337ee6df738f5");

		//获取排行榜
		MainRankings rankings=new MainRankings(false);
		
	}

	

}
